//
// CMeshMultiLodInstance.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CMeshMultiLodInstance extends CMeshBaseInstance {
  private long swigCPtr;

  public CMeshMultiLodInstance(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CMeshMultiLodInstance_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CMeshMultiLodInstance obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CMeshMultiLodInstance(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CMeshMultiLodInstance() {
    this(nel3dJNI.new_CMeshMultiLodInstance(), true);
  }

  public void changeMRMDistanceSetup(float distanceFinest, float distanceMiddle, float distanceCoarsest) {
    nel3dJNI.CMeshMultiLodInstance_changeMRMDistanceSetup(swigCPtr, this, distanceFinest, distanceMiddle, distanceCoarsest);
  }

  public static void registerBasic() {
    nel3dJNI.CMeshMultiLodInstance_registerBasic();
  }

  public void set_LastLodMatrixDate(java.math.BigInteger value) {
    nel3dJNI.CMeshMultiLodInstance__LastLodMatrixDate_set(swigCPtr, this, value);
  }

  public java.math.BigInteger get_LastLodMatrixDate() {
    return nel3dJNI.CMeshMultiLodInstance__LastLodMatrixDate_get(swigCPtr, this);
  }

  public void set_LastLodLightingDate(long value) {
    nel3dJNI.CMeshMultiLodInstance__LastLodLightingDate_set(swigCPtr, this, value);
  }

  public long get_LastLodLightingDate() {
    return nel3dJNI.CMeshMultiLodInstance__LastLodLightingDate_get(swigCPtr, this);
  }

  public CLightContribution getLightContribution() {
    return new CLightContribution(nel3dJNI.CMeshMultiLodInstance_getLightContribution(swigCPtr, this), false);
  }

  public void setCoarseMeshDist(float dist) {
    nel3dJNI.CMeshMultiLodInstance_setCoarseMeshDist(swigCPtr, this, dist);
  }

  public float getCoarseMeshDist() {
    return nel3dJNI.CMeshMultiLodInstance_getCoarseMeshDist(swigCPtr, this);
  }

  public float getNumTriangles(float distance) {
    return nel3dJNI.CMeshMultiLodInstance_getNumTriangles(swigCPtr, this, distance);
  }

  public void initRenderFilterType() {
    nel3dJNI.CMeshMultiLodInstance_initRenderFilterType(swigCPtr, this);
  }

  public void traverseLoadBalancing() {
    nel3dJNI.CMeshMultiLodInstance_traverseLoadBalancing(swigCPtr, this);
  }

  public final static int Lod0Blend = nel3dJNI.CMeshMultiLodInstance_Lod0Blend_get();

}
